<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<%=basePath%>cdiscount_findClientDiscount.action" method="post">
	<div class="searchBar">
				<div class="pageFormContent1">
					<p>
					<label width="50">客户类别名称：</label>
					<input type="text" name="clientClassName" />
					</p>
				</div>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">&nbsp;&nbsp;&nbsp;查&nbsp;&nbsp;询&nbsp;&nbsp;&nbsp;</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<%=basePath%>cdiscount_readAdd.action" target="dialog" title="添加客户类型折扣" rel="addDiscountforChannel" width="810"><span>添加客户类型折扣</span></a></li>
			<li><a class="delete" href="<%=basePath%>cdiscount_delClientdiscount.action?classNum={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除折扣</span></a></li>
			<li><a class="edit" href="<%=basePath%>cdiscount_findClientdiscountByNum.action?classNum={sid_user}" target="dialog" rel="modifyClientDiscount" width="810"><span>修改折扣</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="137">
		<thead>
			<tr>
				<th width="100" >客户类型名称</th>
				<th width="60" >折扣率</th>
				<th width="80" >是否含燃油</th>
				<th width="200" >说明</th>
				<th width="80" >添加日期</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${requestScope.cdList}" var="cd">
			<tr target="sid_user" rel="${cd.classNumber}">
				<td>${cd.PCdiscountName }</td>
				<td>${cd.PCdiscountRate }</td>
				<td>
					<c:if test="${cd.PCdiscountFuel eq true}">包含</c:if>
					<c:if test="${cd.PCdiscountFuel eq false}">不含</c:if>
				</td>
				<td>${cd.PCdiscountNote }</td>
				<td>${cd.PCdiscountAddDate }</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
